using GreyMagic;
using Triton.Game.Mono;

namespace Triton.Game.Mapping
{
	public static class OutExtensions
	{
		public static bool GetInputHitInfo(UniversalInputManager uim, out RaycastHit hitInfo)
		{
			lock (MonoClass.OutLock)
			{
				RaycastHit raycastHit = default(RaycastHit);
				MonoClass.ResetOutParams();
				MonoClass.SetOutParam(0, MarshalCache<RaycastHit>.Size);
				bool result = uim.method_11<bool>("GetInputHitInfo", new object[1] { raycastHit });
				hitInfo = MonoClass.ReadOutParam<RaycastHit>(0);
				MonoClass.ResetOutParams();
				return result;
			}
		}
	}
}
